package ch.sv7.tool.dbmanager.db.difference;

import ch.sv7.tool.dbmanager.db.ForeignKeySchema;
import ch.sv7.tool.dbmanager.db.TableSchema;

/**
 *
 * @author svt
 *
 */
public class ForeignKeyUpdateRuleDifference extends AbstractForeignKeyDifference {

	/**
	 * @param tableName
	 */
	public ForeignKeyUpdateRuleDifference(TableSchema expectedTableSchema, TableSchema actualTableSchema, ForeignKeySchema expectedForeignKey, ForeignKeySchema actualForeignKey) {
		super(expectedTableSchema, actualTableSchema, expectedForeignKey, actualForeignKey);
	}

	/**
	 * @see ch.sv7.tool.dbmanager.db.difference.AbstractTableDifference#getMessage()
	 */
	public String getMessage() {
		return super.getMessage() 
			+ " wrong update rule, Expected "
			+ getExpectedForeignKey().getUpdateRule() 
			+ ", Actual " 
			+ getActualForeignKey().getUpdateRule();
	}
	
	public boolean isBlocker() {
		return false;
	}	
}
